import request from '@/utils/request'

export function getMenuTree(systemId) {
  return request({
    url: '/MenuOperate/MenuTree/' + systemId,
    method: 'get'
  })
}
export function getModuleOperateTree(systemId) {
  return request({
    url: '/MenuOperate/ModuleOperateTree/' + systemId,
    method: 'get'
  })
}

export function getMenuOperateList(systemId) {
  return request({
    url: '/MenuOperate/MenuOperateList/' + systemId,
    method: 'get'
  })
}

export function updateList(data) {
  return request({
    url: '/MenuOperate/Update',
    method: 'post',
    data
  })
}

export function getInfo(id) {
  return request({
    url: '/project/' + id,
    method: 'get'
  })
}

export function add(data) {
  return request({
    url: '/project',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: '/project',
    method: 'put',
    data
  })
}

export function remove(id) {
  return request({
    url: '/project/' + id,
    method: 'delete'
  })
}
